package yunquan.wang.modules.base.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import yunquan.wang.base.domain.IdEntity;
@Entity
@Table(name = "BASE_USERINFO")
public class Userinfo extends IdEntity{
/**
	 * 
	 */
	private static final long serialVersionUID = 3872638362338872894L;
	
@Column(name = "LASTLOGINIP")
private	String lastLoginIp;//上次登录IP
@Column(name = "LASTLOGINTIME")
private	Date   lastLoginTime;//上次登录时间
@Column(name = "PHONE")
private	String phone;//电话
@Column(name = "MOBILEPHONE")
private	String mobilePhone;//手机
@Column(name = "ADDRESS")
private	String address;//地址
@Column(name = "QQNUMBER")
private	String qqNumber;//QQ号
@Column(name = "MSN")
private	String msn;//msn
@Column(name = "LOGINTOTAL")
private	Integer logintotal;//一共登录次数
@Column(name = "PHOTO")
private	String photo;//照片
@Column(name = "TOTALONLINE")
private	Integer totalOnline;//总在线时长
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "PK_USERBASIC")
private UserBasic userBasic;
public String getLastLoginIp() {
	return lastLoginIp;
}
public void setLastLoginIp(String lastLoginIp) {
	this.lastLoginIp = lastLoginIp;
}
public Date getLastLoginTime() {
	return lastLoginTime;
}
public void setLastLoginTime(Date lastLoginTime) {
	this.lastLoginTime = lastLoginTime;
}
public String getPhone() {
	return phone;
}
public void setPhone(String phone) {
	this.phone = phone;
}
public String getMobilePhone() {
	return mobilePhone;
}
public void setMobilePhone(String mobilePhone) {
	this.mobilePhone = mobilePhone;
}
public String getAddress() {
	return address;
}
public void setAddress(String address) {
	this.address = address;
}
public String getQqNumber() {
	return qqNumber;
}
public void setQqNumber(String qqNumber) {
	this.qqNumber = qqNumber;
}
public String getMsn() {
	return msn;
}
public void setMsn(String msn) {
	this.msn = msn;
}
public Integer getLogintotal() {
	return logintotal;
}
public void setLogintotal(Integer logintotal) {
	this.logintotal = logintotal;
}
public String getPhoto() {
	return photo;
}
public void setPhoto(String photo) {
	this.photo = photo;
}
public Integer getTotalOnline() {
	return totalOnline;
}
public void setTotalOnline(Integer totalOnline) {
	this.totalOnline = totalOnline;
}
public UserBasic getUserBasic() {
	return userBasic;
}
public void setUserBasic(UserBasic userBasic) {
	this.userBasic = userBasic;
}
 
	
}
